<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"> 

<h:head>
	<title>Login Page</title>
</h:head> 
<body> 
<h:form>
	<h:panelGrid columns="2">
		<h:outputText value="User Name: " />
		<h:inputText value="#{controller.userName}" />
		<h:outputText value="Password: "/>
		<h:inputText value="#{controller.userPassword}" />
	</h:panelGrid>
	<h:commandButton action="#{controller.logIn()}" value="Login" type="submit"/>
	<h:outputText value="or " />
	<h:commandLink value="Register" action="register.xhtml" />
	
  <!--h:selectOneMenu value="#{readService.allProvince.iterator()}">
    <f:selectItem itemLabel="Select Province" itemValue=""/>
    <f:selectItems value="#{readService.allProvince}" var="province" itemLabel="#{province.name}" itemValue="#{province.id}"></f:selectItems>
  </h:selectOneMenu-->
</h:form>
</body> 
</html>
